package com.koalac.ironman.net.pojo.response;

import org.json.JSONObject;

public class SchoolTravelItem extends BaseResponse {

    private String id;
    private String name;
    private String headImgUrl;

    private int beforePrice;
    private int afterPrice;
    private String followNumber;

    private int number_flag;

    public static final int ATTENTION = 1;
    public static final int NO_ATTENTION = 0;

    public int getNumber_flag() {
	return number_flag;
    }

    public void setNumber_flag(int number_flag) {
	this.number_flag = number_flag;
    }

    @Override
    public void init(JSONObject source) {
	if (source != null) {
	    setId(source.optString("id"));
	    setName(source.optString("name"));
	    setHeadImgUrl(source.optString("head_img_url"));

	    setBeforePrice(source.optInt("before_price"));
	    setAfterPrice(source.optInt("after_price"));
	    setFollowNumber(source.optString("follow_number"));
	    setNumber_flag(source.optInt("number_flag"));
	}
    }

    public String getId() {
	return id;
    }

    public void setId(String id) {
	this.id = id;
    }

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public String getHeadImgUrl() {
	return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
	this.headImgUrl = headImgUrl;
    }

    public int getBeforePrice() {
	return beforePrice;
    }

    public void setBeforePrice(int beforePrice) {
	this.beforePrice = beforePrice;
    }

    public int getAfterPrice() {
	return afterPrice;
    }

    public void setAfterPrice(int afterPrice) {
	this.afterPrice = afterPrice;
    }

    public String getFollowNumber() {
	return followNumber;
    }

    public void setFollowNumber(String folowNumber) {
	this.followNumber = folowNumber;
    }

}
